<template>
	<view class="p-2">
		<view class="font-lg text-dark mb-2 text-center">{{detail.title}}</view>
		<!-- 商品详情 -->
		<view class="context py-4">
			<rich-text :nodes="htmlNodes" style="font-size: 0;"></rich-text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail:{},
				htmlNodes: `<img style='width:100%;' src="/static/images/demo/demo1.jpg" /><img style='width:100%;' src="/static/images/demo/demo2.jpg" /><img style='width:100%;' src="/static/images/demo/demo3.jpg" />
				    `,
			}
		},
		onLoad(e) {
			if(!e.detail){
				return uni.navigateBack({
					delta: 1
				});
			}
			this.detail = JSON.parse(e.detail)
			// 设置页面标题
			uni.setNavigationBarTitle({
				title:this.detail.title
			})
		},
		methods: {
			
		}
	}
</script>

<style>

</style>
